import Vue from 'vue';
import App from './App.vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import request from './utils/request.js';
import router from './router'; // 导入路由配置

Vue.config.productionTip = false; // 关闭生产模式提示消息

Vue.use(ElementUI);

// 全局设置 axios 实例
Vue.prototype.$http = request;

const API_PREFIX = 'http://localhost:8888';
Vue.prototype.$apiPrefix = API_PREFIX;

new Vue({
    render: h => h(App),
    router
}).$mount('#app');